//author: create by SunJH
//时间: 2021/11/19 0019
//邮箱: 965989158@qq.com
//描述: 日志工具

import 'package:logger/logger.dart';

import 'def_config.dart';

class LogUtil{
 static final Logger _logger = Logger();

 LogUtil._();
 static void logE( dynamic info){
    if(DefConfig.isShowLog)_logger.e(info);
  }
  static void logW( dynamic info){
    if(DefConfig.isShowLog)_logger.w(info);
  }
  static void logI( dynamic info){
    if(DefConfig.isShowLog)_logger.i(info);
  }
  static void logD(dynamic info){
    if(DefConfig.isShowLog)_logger.d(info);
  }
  static void logV( dynamic info){
    if(DefConfig.isShowLog)_logger.v(info);
  }
}